/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const userRouter = {
  path: '/company',
  component: Layout,
  meta: {
    title: '组织'
  },
  children: [
    {
      path: '/company/station',
      component: () => import('@/views/station/index'),
      name: 'CompanyStation',
      meta: {
        title: '变电站',
        icon: 'em-icon-plug'
      }
    },
    {
      path: '/company/default',
      component: () => import('@/views/setting/system/index'),
      name: 'CompanyDefault',
      meta: {
        title: '组织结构',
        icon: 'em-icon-organization',
        roles: ['admin', 'founder']
      }
    }
  ]
}

export default userRouter
